#!/usr/bin/env python2.5

import sys
import procpy

try:
   sys.argv[1]
except IndexError:
   print "python pidclass.py <PID>"
   sys.exit(1)

w = procpy.Pid(int(sys.argv[1]))
print w.cmdline
if 'HOME' in w.environ:
   print w.environ['HOME']
